package observer;

public class Driver {

	public static void main(String args[]){
		
		ASubject<Integer> intSubject = new ConcreteSubject(); 
		IObserver<Integer> observer = new ConcreteObserver();
		
		intSubject.attach(observer);
		
		
		for(int i=1; i<100; i = i*3){
			
			intSubject.setState(i);
			
		}
		
		//intSubject.dettach(observer);
		intSubject.setState(100);
		
		
		
		
	}
	
	
	
}
